Using the JDBC Client on a Java 2 Platform

When using the JDBC driver on a Java 2 Platform with the standard security manager enabled, you must give the driver some additional permissions. Refer to your Java 2 Platform documentation for more information about the Java 2 Platform security model and permissions.

You can run an application on a Java 2 Platform with the standard security manager using:

"java -Djava.security.manager application_class_name" 

where application_class_name is the class name of the application.

Web browser applets running in the Java 2 plug-in are always running in a JVM with the standard security manager enabled. To enable the necessary permission, you must add them to the security policy file of the Java 2 Platform. This security policy file can be found in the jre\lib\security subdirectory of the Java 2 Platform installation directory.

To use JDBC data sources, all code bases must have the following permissions:

// permissions granted to all domains 
grant { 
// DataSource access 
permission java.util.PropertyPermission "java.naming.*", 
"read,write"; 
// Adjust the server host specification for your environment 
permission java.net.socketPermission "*.ddtek.be:0-65535", 
"connect"; 
}; 

To use scroll-insensitive scrollable cursors, all code bases must have access to temporary files:

// permissions granted to all domains 
grant { 
// Permission to create and delete temporary files. 
// Adjust the temporary directory for your environment. 
permission java.io.FilePermission "C:\\TEMP\\-", 
"read,write,delete"; 
}; 

To use SSL or other data privacy functionality, the following permissions are required for the JDBC Client code base only:

// permissions granted to the SequeLink JDBC Client code base only 
grant codeBase "file:/slje/lib/-" { 
// Security providers 
// Only needed when using SSL or other data privacy functionality 
// (e.g. fixed key DES/3DES) 
permission java.security.SecurityPermission 
"putProviderProperty.IAIK"; 
permission java.security.SecurityPermission "insertProvider.IAIK"; 
}; 

Applets that connect to another server other than the one they are downloaded from must have the following permission:

// permissions granted to the SequeLink JDBC Client code base only 
grant codeBase "file:/slje/lib/-" { 
// TCP/IP 
// Adjust the server host specification for your environment 
permission java.net.SocketPermission "*.ddtek.be:0-65535", 
"connect"; 
}; 

NOTES: